/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package FrameWork.Objects.Items;

import FrameWork.GameScreen;
import FrameWork.Objects.MyObject;
import GamePlay.Global;
import javax.microedition.lcdui.Graphics;

/**
 *
 * @author ThanhTri
 */
public class BoomExplosion extends Items{
    protected boom m_Boom;
    
    public BoomExplosion(boom _Boom,int _X,int _Y, int _SizeX, int _SizeY,
            float _TimeAni,
            int _Map[][],int _Width, int _Height,
            int _ID){     
        super(_X, _Y, _SizeX, _SizeY, _TimeAni,  _Map, _Width, _Height, _ID);
        m_Boom = _Boom;
    }
    
    public void ActionCollision (MyObject _Object){
    }
    public void Update(float _Time,int _Terrain[][]) {
        super.Update(_Time,_Terrain);
        if (m_Boom.getOldStatus() == Global.STT_DEATH){
            m_STATUS = m_OldStatus = Global.STT_DEATH;
        }
    }
    public void DrawScreen (Graphics _Graphics,GameScreen _Screen){
        
    }
}